﻿using System;
using UnityEngine;

public class SpawnOnEnable : MonoBehaviour
{
    public Transform prefab;

    private void OnEnable()
    {
        if (this.prefab != null)
        {
            this.prefab.Spawn<Transform>(base.transform.position, base.transform.rotation);
        }
    }
}

